window.addEventListener('load',function(){
	var item = document.querySelectorAll(".fenyeqi .item_tab .item");
	for(var i=0;i<item;i++){
		item[i].setAttribute('index','i')
		item[i].onclick = function(){
			var index = this.getAttribute('index')
			for(var j=0;j<item.length;j++){
				itemtab[j].classList.remove('active');
			}
			itemtab[index].classList.add('active');
		}
	}
	
	
	var index_caidan = document.querySelector(".index_caidan img");
	var index_logo = document.querySelector(".index_dianhua");
	var beijing    = document.querySelector(".beijjing");
	var caidan   = document.querySelector(".caidan_xiang");
	var  xx     = document.querySelector(".caidan_xiang .xx");
	index_caidan.onclick = function(){
		beijing.style.display = "block";
		caidan.style.left = "0vw";
		xx.style.display= "block";
	}
	xx.onclick =function(){
		beijing.style.display = "none";
		caidan.style.left = "-50vw";
		xx.style.display= "none";
	}
})